<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateBrandsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('brands', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('customer_id')->unsigned()->default(0)->comment('客户ID，0为Panx设置的品牌');
			$table->string('url', 100)->nullable()->comment('品牌的网址');
			$table->string('name', 190)->comment('品牌名称');
			$table->string('logo')->nullable()->comment('品牌的logo');
			$table->boolean('locked')->default(0)->comment('锁定禁止修改');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('brands');
	}

}
